import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
  ],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
			"@~": path.resolve(__dirname, ""),
    }
  },
  server: {
    proxy: {
      '/api': {
        target: 'http://localhost:5043',
        // target: 'https://tools-api.xiaoohui.com',
        changeOrigin: true,
      }
    }
  }
})
